import { request } from '@/network/request.js'

// 分页查看学校
export const viewSchool = function (current, size) {
    return request.get(`/organ/school/page?current=${current}&size=${size}`);
}
// 分页查看学院
export const viewCollege = function (current, size, schoolId) {
    return request.get(`/organ/college/page?current=${current}&size=${size}&schoolId=${schoolId}`);
}

// 根据id获取学校信息
export const getSchoolInfo = function (schoolId) {
    return request.get(`/organ/school/${schoolId}`);
}
// 根据id获取学院信息
export const getCollegeInfo = function (collegeId) {
    return request.get(`/organ/college/${collegeId}`);
}

